import request from '@/utils/request'
import type {
  patientHomeKnowledgeReq,
  patientHomeKnowledgeApi,
  homePageDocReq,
  homePageDocApi,
  likePostReq
} from '@/types/home'
// 首页tabs
export const patientHomeKnowledge = (data: patientHomeKnowledgeReq) => {
  return request<patientHomeKnowledgeApi>('/patient/home/knowledge', 'get', data)
}
// 首页-关注的医生列表
export const homePageDoc = (data: homePageDocReq) =>
  request<homePageDocApi>('/home/page/doc', 'get', data)

//  关注-关注操作
export const likePost = (data: likePostReq) => request('/like', 'post', data)
